gtk4.git
9 years agoplaceview: Don't leak the file enumerator
Matthias Clasen [Thu, 17 Nov 2016 18:50:25 +0000 (13:50 -0500)]
placeview: Don't leak the file enumerator

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774634

9 years agoentry: Fix input window position for icons
Matthias Clasen [Thu, 17 Nov 2016 17:04:35 +0000 (12:04 -0500)]
entry: Fix input window position for icons

This makes the icon in the placesview address entry and
in widget-factory's progress entry work again.

9 years agotests/styleexamples: Remove gtk_render_extension calls
Timm Bäder [Thu, 17 Nov 2016 15:45:10 +0000 (16:45 +0100)]
tests/styleexamples: Remove gtk_render_extension calls

The function doesn't exist anymore so there's nothing to test.

9 years agofilechooserwidget: Forward file filter to entry
Timm Bäder [Tue, 15 Nov 2016 09:51:41 +0000 (10:51 +0100)]
filechooserwidget: Forward file filter to entry

And in the entry, apply the currently used filter as a second step to
the completion items.

https://bugzilla.gnome.org/show_bug.cgi?id=773007

9 years agosizerequest: rename _compute_size_for_orientation to _measure
Timm Bäder [Sat, 12 Nov 2016 21:15:48 +0000 (22:15 +0100)]
sizerequest: rename _compute_size_for_orientation to _measure

They have the exact same parameters and gtk_widget_measure did
unnecessary work before. Also better stack traces!

9 years agodocs: Fix print-related includes
Matthias Clasen [Thu, 17 Nov 2016 14:33:16 +0000 (09:33 -0500)]
docs: Fix print-related includes

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774614.

9 years agoGtkFileChooser: Make local-only default to FALSE
Matthias Clasen [Thu, 17 Nov 2016 14:06:57 +0000 (09:06 -0500)]
GtkFileChooser: Make local-only default to FALSE

There is no good reason anymore to default to TRUE, and this
default only makes applications miss out on useful functionality.

9 years agoRevert "GtkFileChooser: Make local-only default to FALSE"
Matthias Clasen [Thu, 17 Nov 2016 14:05:47 +0000 (09:05 -0500)]
Revert "GtkFileChooser: Make local-only default to FALSE"

This reverts commit 0bc79910e03b69279d0aee8edf76ae5cae63ff65.

9 years agoGtkFileChooser: Make local-only default to FALSE
Matthias Clasen [Thu, 17 Nov 2016 14:02:29 +0000 (09:02 -0500)]
GtkFileChooser: Make local-only default to FALSE

There is no good reason anymore to default to TRUE, and this
default only makes applications miss out on useful functionality.

9 years agogtk-demo: Set local-only to FALSE for the file chooser
Matthias Clasen [Thu, 17 Nov 2016 13:51:16 +0000 (08:51 -0500)]
gtk-demo: Set local-only to FALSE for the file chooser

No good reason for that.

9 years agogtkplacesview: Add example of IPv6 address in guidance
Ondrej Holy [Wed, 16 Nov 2016 08:03:42 +0000 (09:03 +0100)]
gtkplacesview: Add example of IPv6 address in guidance

Square brackets are mandatory for IPv6 addresses. Add example of IPv6
address in the guidance to make it obvious.

https://bugzilla.gnome.org/show_bug.cgi?id=756570

9 years agodocs: Update an example
Matthias Clasen [Thu, 17 Nov 2016 11:17:11 +0000 (06:17 -0500)]
docs: Update an example

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774490

9 years agospin entry should be a child of spin context
Caolán McNamara [Thu, 17 Nov 2016 10:04:29 +0000 (10:04 +0000)]
spin entry should be a child of spin context

https://bugzilla.gnome.org/show_bug.cgi?id=774609

9 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Thu, 17 Nov 2016 04:21:21 +0000 (04:21 +0000)]
Update Brazilian Portuguese translation
(cherry picked from commit 0103bbf5eb6efa817e2d42643d73dd0133fdb003)

9 years agosnapshot: Implement gtk_snapshot_clips_rect()
Benjamin Otte [Thu, 17 Nov 2016 02:31:15 +0000 (03:31 +0100)]
snapshot: Implement gtk_snapshot_clips_rect()

And use this to cull widgets and gadgets that are completely outside the
clip region.

A potential optimization is to apply this clip region to cairo contexts
created with gtk_snapshot_append_cairo_node(), but for that we'd need to
apply the inverse matrix to the clip region, and that causes rounding
errors.

Plus, I hope that cairo drawing becomes exceedingly rare so it won't be
used for the whole widget factory like today (which might also explain
why no culling happens in the widget factory outside the header bar.

9 years agosnapshot: Pass the clip region to the snapshot
Benjamin Otte [Thu, 17 Nov 2016 01:14:10 +0000 (02:14 +0100)]
snapshot: Pass the clip region to the snapshot

9 years agosnapshot: Add GtkSnapshotState
Benjamin Otte [Thu, 17 Nov 2016 00:55:26 +0000 (01:55 +0100)]
snapshot: Add GtkSnapshotState

Essentially copies cairo_gstate_t.

This is in preparation for attaching more information to the snapshot.

9 years agosnapshot: Fix graphene misunderstandings
Benjamin Otte [Thu, 17 Nov 2016 00:05:15 +0000 (01:05 +0100)]
snapshot: Fix graphene misunderstandings

The equivalent to cairo_matrix_multiply (a, b, c) is
graphene_matrix_multiply (c, b, a).

graphene_matrix_multiply (a, b, c) may not be called with b and c being
the same matrix.

9 years agosnapshot: Add infrastructure to snapshot CSS images
Benjamin Otte [Wed, 16 Nov 2016 19:51:53 +0000 (20:51 +0100)]
snapshot: Add infrastructure to snapshot CSS images

Use this infrastructure to render builtin images. Which means from now
on, GtkCheckbutton, GtkSpinner and a few others use snapshots.

9 years agorenderbackground: Remove unused functions
Benjamin Otte [Wed, 16 Nov 2016 18:31:47 +0000 (19:31 +0100)]
renderbackground: Remove unused functions

9 years agoAPI: Remove everything relating to "grip"
Benjamin Otte [Wed, 16 Nov 2016 18:27:43 +0000 (19:27 +0100)]
API: Remove everything relating to "grip"

Grips have long been unused in GTK, so remove all support for them.
This removes the GTK_STYLE_CLASS_GRIP and the special
gtk_render_handle() code for drawing those grips.

9 years agoAPI: Remove gtk_render_extension()
Benjamin Otte [Wed, 16 Nov 2016 17:36:10 +0000 (18:36 +0100)]
API: Remove gtk_render_extension()

This is long-gone drawing API.

9 years agogsktexture: Allow attaching render data to textures
Benjamin Otte [Wed, 16 Nov 2016 04:37:20 +0000 (05:37 +0100)]
gsktexture: Allow attaching render data to textures

This allows renderers (or anyone really) to attach "render data" to
textures. Only the first render data sticks.

You can gsk_texture_set_render_data() with the key you will use to
look the data up again, and if no data has been set yet, yours will be
set.

You can retrieve this data via gsk_texture_get_render_data() later on.
If your data has been cleared, NULL will be returned.

When gsk_texture_clear_render_data() is called (which the texture will
call when it is finalized), your destory notify will be called and you
have to release your render data.

The GL driver uses this to attach texture ids to GskTextures.

9 years agogsk: Rework GskTexture
Benjamin Otte [Wed, 16 Nov 2016 03:14:32 +0000 (04:14 +0100)]
gsk: Rework GskTexture

We do no longer bind textures to a renderer, instead they are a way for
applications to provide texture data.

For now, that's it. We've reverted to uploading it from scratch every
frame.

9 years agoUpdate Polish translation
Piotr Drąg [Wed, 16 Nov 2016 12:08:19 +0000 (13:08 +0100)]
Update Polish translation

9 years agoUpdate Polish translation
Piotr Drąg [Wed, 16 Nov 2016 10:43:23 +0000 (11:43 +0100)]
Update Polish translation

9 years agocontainer: ensure we only append a single node
Benjamin Otte [Tue, 15 Nov 2016 21:39:26 +0000 (22:39 +0100)]
container: ensure we only append a single node

The snapshot vfuncs must only append at most a single node,
otherwise things are going to break if the widget is the root node.

Unfortunately there is no code that can check this in a generic fashion,
so we'll have to debug this on a case-by-case basis.

9 years agosnapshot: push/pop mismatch is critical
Benjamin Otte [Tue, 15 Nov 2016 21:39:05 +0000 (22:39 +0100)]
snapshot: push/pop mismatch is critical

This is broken code that needs to be fixed right now.

9 years agowidget: Remove get_render_node() vfunc
Benjamin Otte [Tue, 15 Nov 2016 16:45:25 +0000 (17:45 +0100)]
widget: Remove get_render_node() vfunc

9 years agosnapshot: Convert inspector's RenderNodeView
Benjamin Otte [Tue, 15 Nov 2016 16:45:08 +0000 (17:45 +0100)]
snapshot: Convert inspector's RenderNodeView

9 years agocontainer: Remove get_render_node() support API
Benjamin Otte [Tue, 15 Nov 2016 16:31:24 +0000 (17:31 +0100)]
container: Remove get_render_node() support API

It's unused now.

9 years agosnapshot: Convert GtkPopover
Benjamin Otte [Tue, 15 Nov 2016 16:28:34 +0000 (17:28 +0100)]
snapshot: Convert GtkPopover

9 years agogadget: Remove gtk_css_gadget_get_render_node()
Benjamin Otte [Tue, 15 Nov 2016 15:56:37 +0000 (16:56 +0100)]
gadget: Remove gtk_css_gadget_get_render_node()

It's unused now that we can snapshot.

9 years agosnapshot: Convert GtkIcon
Benjamin Otte [Tue, 15 Nov 2016 15:39:07 +0000 (16:39 +0100)]
snapshot: Convert GtkIcon

9 years agosnapshot: Convert GtkExpander
Benjamin Otte [Tue, 15 Nov 2016 15:38:20 +0000 (16:38 +0100)]
snapshot: Convert GtkExpander

9 years agoRevert "GtkFrame: Convert to indirect rendering"
Benjamin Otte [Tue, 15 Nov 2016 15:32:30 +0000 (16:32 +0100)]
Revert "GtkFrame: Convert to indirect rendering"

This reverts commit a0b2b3745f697b91d9e91c3f10b0b3b4627a33d8.

Frames cannot be rendered by GSK yet, because they do clipping.

9 years agosnapshot: Convert GtkSeparator
Benjamin Otte [Tue, 15 Nov 2016 15:21:14 +0000 (16:21 +0100)]
snapshot: Convert GtkSeparator

9 years agoRevert "Covert GtkOverlay to indirect rendering"
Benjamin Otte [Tue, 15 Nov 2016 15:20:18 +0000 (16:20 +0100)]
Revert "Covert GtkOverlay to indirect rendering"

This reverts commit fd4a1cdad60fd291abd59dd5b13905430a674d99.

GtkOverlay uses clipping and render nodes can't clip yet.

9 years agosnapshot: convert GtkListBox
Benjamin Otte [Tue, 15 Nov 2016 15:19:21 +0000 (16:19 +0100)]
snapshot: convert GtkListBox

9 years agosnapshot: Convert GtkFlowBox
Benjamin Otte [Tue, 15 Nov 2016 15:11:19 +0000 (16:11 +0100)]
snapshot: Convert GtkFlowBox

9 years agoRevert "paned: Convert to indirect rendering"
Benjamin Otte [Tue, 15 Nov 2016 06:29:38 +0000 (07:29 +0100)]
Revert "paned: Convert to indirect rendering"

This reverts commit ba9193fc813932a3575210e42efbcf78056e07cc.

Paneds can do indirect rendering yet as we need clipping support first.

9 years agosnapshot: Convert GtkSpinner
Benjamin Otte [Tue, 15 Nov 2016 06:25:13 +0000 (07:25 +0100)]
snapshot: Convert GtkSpinner

9 years agosnapshot: Convert box gadget
Benjamin Otte [Tue, 15 Nov 2016 06:06:57 +0000 (07:06 +0100)]
snapshot: Convert box gadget

Makes spinbuttons have text again!

9 years agogsk: Allow creating cairo contexts for 0x0 nodes
Benjamin Otte [Tue, 15 Nov 2016 06:01:27 +0000 (07:01 +0100)]
gsk: Allow creating cairo contexts for 0x0 nodes

This happens in regular code paths for example when trying to render the
empty text string. We don't want to store a surface on the render
node in such a case (so actual rendering isn't slowed down), but we do
want to return a working cairo context that is not in an error state
(so the cairo rendering can continue without error messages).

9 years agowindow: Unrealize renderer last
Benjamin Otte [Tue, 15 Nov 2016 05:43:47 +0000 (06:43 +0100)]
window: Unrealize renderer last

We want to unrealize the renderer only after all widgets have been
unrealized. Otherwise, the widgets cannot release rendering resources
like textures.

9 years agorendernode: Unref texture on finalize
Benjamin Otte [Tue, 15 Nov 2016 05:43:28 +0000 (06:43 +0100)]
rendernode: Unref texture on finalize

Leaking textures is no fun.

9 years agoimage: Invalidate icon helper when unrealizing
Benjamin Otte [Tue, 15 Nov 2016 05:36:34 +0000 (06:36 +0100)]
image: Invalidate icon helper when unrealizing

This frees up any cached surfaces and textures in the iconhelper,
ensuring that the renderer can release its texture data.

9 years agosnapshot: Convert GtkImage and GtkIconHelper
Benjamin Otte [Tue, 15 Nov 2016 05:19:16 +0000 (06:19 +0100)]
snapshot: Convert GtkImage and GtkIconHelper

Adds a bunch of new APIs to render textures with theming.

FIXME: Cannot draw shadows for textures.

9 years agosnapshot: Port GtkHeaderBar
Benjamin Otte [Tue, 15 Nov 2016 03:20:40 +0000 (04:20 +0100)]
snapshot: Port GtkHeaderBar

9 years agosnapshot: Convert GtkFixed
Benjamin Otte [Tue, 15 Nov 2016 03:07:16 +0000 (04:07 +0100)]
snapshot: Convert GtkFixed

9 years agosnapshot: Convert GtkComboBox
Benjamin Otte [Tue, 15 Nov 2016 03:06:20 +0000 (04:06 +0100)]
snapshot: Convert GtkComboBox

9 years agosnapshot: Convert GtkLabel and GtkAccelLabel
Benjamin Otte [Mon, 14 Nov 2016 21:58:58 +0000 (22:58 +0100)]
snapshot: Convert GtkLabel and GtkAccelLabel

Also adds gtk_snapshot_render_insertion_cursor().

9 years agosnapshot: Convert GtkButton and subclasses
Benjamin Otte [Mon, 14 Nov 2016 20:55:03 +0000 (21:55 +0100)]
snapshot: Convert GtkButton and subclasses

9 years agosnapshot: Port GtkActionBar
Benjamin Otte [Mon, 14 Nov 2016 20:43:24 +0000 (21:43 +0100)]
snapshot: Port GtkActionBar

9 years agosnapshot: Convert GtkButtonBox
Benjamin Otte [Mon, 14 Nov 2016 03:31:19 +0000 (04:31 +0100)]
snapshot: Convert GtkButtonBox

9 years agosnapshot: Convert GtkGrid
Benjamin Otte [Mon, 14 Nov 2016 02:47:22 +0000 (03:47 +0100)]
snapshot: Convert GtkGrid

9 years agosnapshot: Convert entry and spinbutton
Benjamin Otte [Mon, 14 Nov 2016 00:52:22 +0000 (01:52 +0100)]
snapshot: Convert entry and spinbutton

9 years agosnapshot: convert GtkBox
Benjamin Otte [Sun, 13 Nov 2016 23:52:40 +0000 (00:52 +0100)]
snapshot: convert GtkBox

9 years agosnapshot: Port to GtkSwitch
Benjamin Otte [Sun, 13 Nov 2016 22:54:30 +0000 (23:54 +0100)]
snapshot: Port to GtkSwitch

Included is the addition of gtk_snapshot_render_layout(), which is meant
to replace gtk_render_layout().

9 years agosnapshot: Add a snapshot function to GtkCssCustomGadget
Benjamin Otte [Sun, 13 Nov 2016 20:08:34 +0000 (21:08 +0100)]
snapshot: Add a snapshot function to GtkCssCustomGadget

9 years agosnapshot: Add gtk_css_gadget_snapshot()
Benjamin Otte [Sun, 13 Nov 2016 19:47:34 +0000 (20:47 +0100)]
snapshot: Add gtk_css_gadget_snapshot()

Including a snpahsot() vfunc, wee!

9 years agocontainer: Add snapshot() implementation
Benjamin Otte [Sun, 13 Nov 2016 15:50:24 +0000 (16:50 +0100)]
container: Add snapshot() implementation

Note that this implementation does not respect GDK windows at all. If
your widget requires respecting them, you should write your own
snapshot implementation and not chain up.

9 years agowidget: Add more sophisticated detection of rendering method
Benjamin Otte [Sun, 13 Nov 2016 15:37:35 +0000 (16:37 +0100)]
widget: Add more sophisticated detection of rendering method

We now look at which of get_render_mode, draw or snapshot vfuncs is the
latest to have been overwritten in the class tree and then use that one.

This allows GtkContainerClass and GtkBinClass to override all of them
for without screwing things up.

9 years agosnapshot: Add gtk_snapshot_render_background()
Benjamin Otte [Sun, 13 Nov 2016 15:16:39 +0000 (16:16 +0100)]
snapshot: Add gtk_snapshot_render_background()

and gtk_snapshot_render_frame() to be direct replacements for the
old gtk_render_*() functions.

Use them to replace Cairo usage completely in gtk_window_snapshot().

9 years agoflowbox: children per line may not be 0
Benjamin Otte [Sat, 12 Nov 2016 21:57:31 +0000 (22:57 +0100)]
flowbox: children per line may not be 0

9 years agosnapshot: Completely reengineer API
Benjamin Otte [Fri, 11 Nov 2016 23:37:54 +0000 (00:37 +0100)]
snapshot: Completely reengineer API

We now try to emulate cairo_t:

We keep a stack of nodes via push/pop and a transform matrix.

So whenever a new node is added to the snapshot, we transform it
by the current transform matrix and append it to the current node.

9 years agogsk: Add implementation for gsk_render_node_get_transform()
Benjamin Otte [Fri, 11 Nov 2016 23:37:38 +0000 (00:37 +0100)]
gsk: Add implementation for gsk_render_node_get_transform()

9 years agowindow: Implement snapshot()
Benjamin Otte [Tue, 8 Nov 2016 00:42:06 +0000 (01:42 +0100)]
window: Implement snapshot()

9 years agowidget: Add GtkWidgetClass.snapshot() vfunc
Benjamin Otte [Mon, 7 Nov 2016 18:28:42 +0000 (19:28 +0100)]
widget: Add GtkWidgetClass.snapshot() vfunc

Does the same thing as the render vfunc, only that it uses a different
prototype.

9 years agogtk: Add gtk_widget_snapshot()
Benjamin Otte [Mon, 7 Nov 2016 18:10:49 +0000 (19:10 +0100)]
gtk: Add gtk_widget_snapshot()

It's functionally equivalent to gtk_widget_get_render_node() but uses a
GtkSnapshot argument to carry the state.

9 years agogdk: Fix win32 build typo
Carlos Garnacho [Tue, 15 Nov 2016 16:06:59 +0000 (17:06 +0100)]
gdk: Fix win32 build typo

We've left libgdk-3 behind. Noticed by Andrew Chadwick, spotted
by Emmanuele Bassi.

9 years agoUpdated Czech translation
Marek Cernocky [Tue, 15 Nov 2016 13:39:46 +0000 (14:39 +0100)]
Updated Czech translation

9 years agoentry: Avoid recursion in gtk_entry_ensure_layout
Matthias Clasen [Mon, 14 Nov 2016 20:17:41 +0000 (15:17 -0500)]
entry: Avoid recursion in gtk_entry_ensure_layout

This was unintentional, and lead to a memory leak.

9 years agorecent-manager: Fix a memory leak caused by "recent-manager: Add a limit to the list...
Lauri Kasanen [Fri, 11 Nov 2016 09:36:20 +0000 (11:36 +0200)]
recent-manager: Fix a memory leak caused by "recent-manager: Add a limit to the list's size"

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=773587

9 years agoappchooser: Plug a memory leak
Matthias Clasen [Mon, 14 Nov 2016 19:19:58 +0000 (14:19 -0500)]
appchooser: Plug a memory leak

We were not dropping the reference that the model gives us.

https://bugzilla.gnome.org/show_bug.cgi?id=774352

9 years agowin32: remove an unused func operating on GdkColor
Andrew Chadwick [Sun, 13 Nov 2016 06:23:17 +0000 (06:23 +0000)]
win32: remove an unused func operating on GdkColor

https://bugzilla.gnome.org/show_bug.cgi?id=774347

9 years agowidget-factory: Better progressbar testing
Matthias Clasen [Mon, 14 Nov 2016 13:20:32 +0000 (08:20 -0500)]
widget-factory: Better progressbar testing

Hook the two top progressbars up to the scale with marks.
Your turn, Lapo.

9 years agogtkstack: reorder size_allocate and move_window
Olivier Fourdan [Wed, 2 Nov 2016 09:08:17 +0000 (10:08 +0100)]
gtkstack: reorder size_allocate and move_window

Unlike other container widgets, GtkStack would allocate its children
prior to moving its windows, which might prevent further valid size
allocation signals to be emitted.

Re-order the size allocation of child widgets to be performed after
moving the GtkStack windows.

Thanks to Owen for spotting the real issue here.

https://bugzilla.gnome.org/show_bug.cgi?id=767713

9 years agoRevert "gdkwindow: configure native windows in move_native_children()"
Olivier Fourdan [Mon, 14 Nov 2016 11:23:56 +0000 (12:23 +0100)]
Revert "gdkwindow: configure native windows in move_native_children()"

This reverts commit 9e2b1ad39e86b2352116f49214cf195cb3e0e970.

9 years agoRevert "gdk: Get rid of unused variables"
Olivier Fourdan [Mon, 14 Nov 2016 11:23:49 +0000 (12:23 +0100)]
Revert "gdk: Get rid of unused variables"

This reverts commit 7016409e9f7cfab6990823c14d2d0287d38284b1.

9 years agoAllow replacing input file in gtk-builder-tool simplify
Matthias Clasen [Sun, 13 Nov 2016 03:29:02 +0000 (22:29 -0500)]
Allow replacing input file in gtk-builder-tool simplify

9 years agoCall gtk_widget_set_has_window for missing windowed widgets
Timm Bäder [Sat, 12 Nov 2016 07:39:35 +0000 (08:39 +0100)]
Call gtk_widget_set_has_window for missing windowed widgets

9 years agowindow: Properly propagate for_size=-1
Timm Bäder [Sat, 12 Nov 2016 13:34:53 +0000 (14:34 +0100)]
window: Properly propagate for_size=-1

9 years agostack: Use gtk_widget_measure
Timm Bäder [Sat, 12 Nov 2016 17:58:18 +0000 (18:58 +0100)]
stack: Use gtk_widget_measure

9 years agolistbox: Use gtk_widget_measure
Timm Bäder [Sat, 12 Nov 2016 17:54:44 +0000 (18:54 +0100)]
listbox: Use gtk_widget_measure

9 years agowindow: Use gtk_widget_measure
Timm Bäder [Sat, 12 Nov 2016 17:28:40 +0000 (18:28 +0100)]
window: Use gtk_widget_measure

9 years agogrid: Use gtk_wiget_measure
Timm Bäder [Sat, 12 Nov 2016 14:30:55 +0000 (15:30 +0100)]
grid: Use gtk_wiget_measure

9 years agotoolitemgroup: Remove style properties
Timm Bäder [Sat, 12 Nov 2016 06:56:11 +0000 (07:56 +0100)]
toolitemgroup: Remove style properties

Replace them with their default values

9 years agocombobox: Remove appears-as-list style property
Timm Bäder [Fri, 11 Nov 2016 20:50:07 +0000 (21:50 +0100)]
combobox: Remove appears-as-list style property

Remove all the code handling the appears-as-list=TRUE case.

9 years agotreeview: Remove style properties
Timm Bäder [Fri, 11 Nov 2016 19:34:35 +0000 (20:34 +0100)]
treeview: Remove style properties

Replace them with the Adwaita default values

9 years agogdkscreen-win32.c: Also define _WIN32_WINNT
Chun-wei Fan [Fri, 11 Nov 2016 13:03:46 +0000 (21:03 +0800)]
gdkscreen-win32.c: Also define _WIN32_WINNT

As in the last commit on gdkdisplay-win32.c, we need to define that to be
0x0600 (Vista) or later so that the items needed in the Windows headers be
activated.

See: https://bugzilla.gnome.org/show_bug.cgi?id=768081#c62

9 years agogdkdisplay-win32.c: Define _WIN32_WINNT
Chun-wei Fan [Fri, 11 Nov 2016 12:53:41 +0000 (20:53 +0800)]
gdkdisplay-win32.c: Define _WIN32_WINNT

... to be for Vista (0x0600) or later.  This is so that the necessary
items in the Windows headers be activated so that the code will build
properly on mingw-w64, and we already require Vista or later for GTK+.

Thanks Ting-Wei Lan for pointing this out.

See: https://bugzilla.gnome.org/show_bug.cgi?id=768081#c62

9 years agorecent-manager: Add a limit to the list's size
Lauri Kasanen [Thu, 27 Oct 2016 13:51:29 +0000 (16:51 +0300)]
recent-manager: Add a limit to the list's size

This fixes a DOS where any app can cause all running gtk apps
to use arbitrary amounts of memory.

Originally reported against mate-panel, where running a big slideshow
in eye-of-mate caused increasing RAM usage in mate-panel.

v2: Hardcode the value
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=773587

9 years agoplaces sidebar: Don't leak a reference
Matthias Clasen [Thu, 10 Nov 2016 20:16:05 +0000 (15:16 -0500)]
places sidebar: Don't leak a reference

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774185

9 years agoFix a copy-paste error
Matthias Clasen [Thu, 10 Nov 2016 20:07:08 +0000 (15:07 -0500)]
Fix a copy-paste error

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774185#c3

9 years agoheaderbar: Don't leak widgets
Matthias Clasen [Thu, 10 Nov 2016 20:03:16 +0000 (15:03 -0500)]
headerbar: Don't leak widgets

We were not properly freeing separators that we end up
not using.

https://bugzilla.gnome.org/show_bug.cgi?id=774066

9 years agospinbutton: Fix some gadget handling issues
Matthias Clasen [Thu, 10 Nov 2016 19:46:21 +0000 (14:46 -0500)]
spinbutton: Fix some gadget handling issues

We were not adding the down_button gadget to the parent,
and we were not unreffing the button gadgets.

https://bugzilla.gnome.org/show_bug.cgi?id=774046

9 years agoGdkGLContext: chain finalize handler
Massimo Valentini [Sat, 5 Nov 2016 13:21:22 +0000 (14:21 +0100)]
GdkGLContext: chain finalize handler

https://bugzilla.gnome.org/show_bug.cgi?id=773979

9 years agoFix loading cached compose tables
Thibaut Girka [Sun, 6 Nov 2016 21:49:00 +0000 (21:49 +0000)]
Fix loading cached compose tables

https://bugzilla.gnome.org/show_bug.cgi?id=773916

9 years agocssshadowvalue: scale the blur surface by the same factor as the target
Gustavo Noronha Silva [Thu, 10 Nov 2016 18:13:47 +0000 (16:13 -0200)]
cssshadowvalue: scale the blur surface by the same factor as the target

Making sure the surfaces are using the same scale factor makes it more
likely a fast path will be used when pixman gets involved, as pointed
out by Benjamin Otte.

https://bugzilla.gnome.org/show_bug.cgi?id=772075